<%@ Page Language="C#" MasterPageFile="~/Admin/BoardAdmin.Master" AutoEventWireup="true" CodeBehind="ActivateUsers.aspx.cs" Inherits="UserInterface.Admin.ActivateUsers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <h1><%= GetLocalResourceObject("Header") %></h1>

    <cc:Repeater ID="UsersRepeater" OnItemCommand="UsersRepeater_ItemCommand" runat="server">
        <HeaderTemplate>
            <table class="default-table">
                <tr>
                    <th><%= GetLocalResourceObject("Username") %></th>
                    <th><%= GetLocalResourceObject("RegisterDate") %></th>
                    <th><%= GetLocalResourceObject("Options") %></th>
                </tr>
        </HeaderTemplate>

        <ItemTemplate>
                <tr>
                    <td class="default-data-column"><%# Eval("Username") %></td>
                    <td class="default-data-column"><%# Eval("RegisterDateTime") %></td>
                    <td class="default-data-column">
                        <asp:Button CommandName="Activate" CommandArgument='<%# Eval("Id") %>' Text="<%$ Resources:Activate %>" runat="server" />
                        <asp:Button CommandName="Deny" CommandArgument='<%# Eval("Id") %>' Text="<%$ Resources:Deny %>" runat="server" />
                    </td>
                </tr>
        </ItemTemplate>
        
        <AlternatingItemTemplate>
                <tr>
                    <td class="alternate-data-column"><%# Eval("Username") %></td>
                    <td class="alternate-data-column"><%# Eval("RegisterDateTime") %></td>
                    <td class="alternate-data-column">
                        <asp:Button CommandName="Activate" CommandArgument='<%# Eval("Id") %>' Text="<%$ Resources:Activate %>" runat="server" />
                        <asp:Button CommandName="Deny" CommandArgument='<%# Eval("Id") %>' Text="<%$ Resources:Deny %>" runat="server" />
                    </td>
                </tr>
        </AlternatingItemTemplate>

        <FooterTemplate>
            </table>
        </FooterTemplate>
        
        <EmptyTemplate>
            <p>
                <%= GetLocalResourceObject("NoUsersToActivate") %>
            </p>
        </EmptyTemplate>
    </cc:Repeater>
</asp:Content>
